package com.zoanun.tools.sys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zoanun.tools.sys.model.Role;
import com.zoanun.tools.sys.repository.RoleRepository;

@Service
public class RoleService {
	@Autowired
	RoleRepository roleRepo;
	
	public void insertRole(Role role){
		roleRepo.insertRole(role);
	}
	
	public Role findRole(Role role){
		return roleRepo.findRole(role);
	}

	public int deleteRole(Role role) {
		return roleRepo.deleteRole(role);
	}
}
